package com.deyuanyun.pic.integalz.controller.dto;

import java.math.BigDecimal;

/**
 *  完整性分析查询vo
 *  @author axiao(xj08.dream@gmail.com)
 *  @date 2016-11-15
 *  @version 1.0
 *  Histroy: [修改人][时间][描述]
 */
public class IntegalzInspTaskQueryVO {

    private String pipeLineId; //管道id

    private BigDecimal startMileage; //起点位置距离

    private BigDecimal endMileage; //终点位置距离

    private Long startMileage2; //起点位置距离

    private Long endMileage2; //终点位置距离

    
    
    public Long getStartMileage2() {
        if(startMileage != null && startMileage2 == null){
            startMileage2 = Math.round(startMileage.movePointRight(3).doubleValue());
        }
        return startMileage2;
    }
    public Long getEndMileage2() {
        if(endMileage != null && endMileage2 == null){
            endMileage2 = Math.round(endMileage.movePointRight(3).doubleValue());
        }
        return endMileage2;
    }

    public String getPipeLineId() {
        return pipeLineId;
    }

    public void setPipeLineId(String pipeLineId) {
        this.pipeLineId = pipeLineId;
    }

    public BigDecimal getStartMileage() {
        return startMileage;
    }

    public void setStartMileage(BigDecimal startMileage) {
        this.startMileage = startMileage;
    }

    public BigDecimal getEndMileage() {
        return endMileage;
    }

    public void setEndMileage(BigDecimal endMileage) {
        this.endMileage = endMileage;
    }

}
